package main

import "fmt"

/*
@author: wy
@file: 数字反转.py
@time: 2023/11/22 18:22
*/

func main() {
	var num int
	var final_num int
	var num1 int
	println("please input a number:")
	fmt.Scan(&num)
	for num > 1 {
		num1 = num % 10
		final_num = num1 + final_num*10
		num /= 10
	}
	println(final_num)
}
